# for遍历
set = {0}
set.remove(0)
list = [1,5,7,2,1,5,6,5,5,4]
for li in list:
    set.add(li)
#    print(li)
#print(set)
set.clear()

# 列表解析
ran = range(1,11);
# print(ran ** 2 for r in ran)
# 遍历切片
# for i in ran[:3]:
#     print(i)

languages={
    'jen':'python',
    'sarah':'c',
    'edward':'rudy',
    'phil':'java',
    'tom':'python'
}
# 获取key和value
# for key,value in languages.items():
#         print(f'key:{key},value:{value}')
#
# # 获取key
# for key in languages.keys():
#         print(f'key:{key}')
#
# # 获取key
# for value in languages.values():
#      print(f'value:{value}')

li  = {1}
# while 循环
# userName = 'hmh'
# password = '123456'
# count = 0
# while count < 3:
#     us = input("输入账户:")
#     ps = input("输入密码:")
#     if us==userName and password==ps:
#         print('ok')
#         break
#     else:
#         print('error')
#         count+=1
# if count >= 3:
#     print(f'error:{count}')

if li:
    print("not_empt")
else:print("empt")